package org.stone.project.domain;

import cn.hutool.core.util.ObjectUtil;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.domain.Persistable;

@Data
public class UserInfo implements Persistable {
    @Id
    private String id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    @Override
    public boolean isNew() {
        return ObjectUtil.isNotEmpty(id);
    }
}
